package com.hzsoft.sys.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hzsoft.sys.entity.SysUser;
import com.hzsoft.sys.mapper.SysUserMapper;
import com.hzsoft.sys.service.SysUserService;
@Transactional
@Service("sysUserService")
public class SysUserServiceImpl implements SysUserService{

	private SysUserMapper sysUserMapper;

	public SysUserMapper getSysUserMapper() {
		return sysUserMapper;
	}
	@Autowired
	public void setSysUserMapper(SysUserMapper sysUserMapper) {
		this.sysUserMapper = sysUserMapper;
	}
	public int deleteByPrimaryKey(String userId) {
		// TODO Auto-generated method stub
		return sysUserMapper.deleteByPrimaryKey(userId);
	}
	public int insert(SysUser record) {
		// TODO Auto-generated method stub
		return sysUserMapper.insert(record);
	}
	public int insertSelective(SysUser record) {
		// TODO Auto-generated method stub
		return sysUserMapper.insertSelective(record);
	}
	public SysUser selectByPrimaryKey(String userId) {
		// TODO Auto-generated method stub
		return sysUserMapper.selectByPrimaryKey(userId);
	}
	public int updateByPrimaryKeySelective(SysUser record) {
		// TODO Auto-generated method stub
		return sysUserMapper.updateByPrimaryKeySelective(record);
	}
	public int updateByPrimaryKey(SysUser record) {
		// TODO Auto-generated method stub
		return sysUserMapper.updateByPrimaryKey(record);
	}
	public SysUser selectByUsername(String username) {
		// TODO Auto-generated method stub
		return sysUserMapper.selectByUsername(username);
	}
	public String selectRolesByUserID(String name, String string) {
		// TODO Auto-generated method stub
		return sysUserMapper.selectRolesByUserID(name, string);
	}
	public List<SysUser> listPageUser(SysUser user) {
		// TODO Auto-generated method stub
		return sysUserMapper.listPageUser(user);
	}
	
	
}
